package com.coders.silpa;


public class operatordemo {
	operatordemo()
	{
		
	}
	public void add()
	{
		System.out.println("Addition Performed");
		
		System.out.println("Result is "+(10+20));
		
		
	}
	public void sub()
	{
		System.out.println("Subtraction Performed");
		System.out.println("Result is "+(10-20));

	}
	public void mult()
	{
		System.out.println("Multiplication Performed");
		System.out.println("Result is "+(10*20));

	}


	public static void main(String arg[])
	{
		operatordemo opdem=new operatordemo();
		int a=10,b=20;
		
		String x="N";
		char status;
		System.out.println("Operations performed in 10 and 20");
		System.out.println("Select  ADD:A  SUBTRACT:S  MULTIPLY:M ");
		x=arg[0];
		status=x.charAt(0);
		
		switch(status)
		{
	
		case 'A': opdem.add();
		break;
		case 'S': opdem.sub();
		break;
		case 'M': opdem.mult();
		break;
		default: System.out.println("Incorrect Selection");
		
			
		}
		
	
	}
}
